package com.second.app.designpattern.observer;

/**
 * @Author GYZ
 * @Date 2023/11/10
 * <pre>
 *  具体观察者（今日比赛信息观察者）
 * </pre>
 */
public class CurrentObserver implements Observer {

    private LolSubject lolSubject;

    public CurrentObserver(LolSubject lolSubject) {
        this.lolSubject = lolSubject;
    }

    @Override
    public void update() {
        System.out.println("今日比赛：" + lolSubject.getMsg());
    }
}
